package com.gxsyh.nantie.dining.provider.domain;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * @email yom535@outlook.com
 * @author: 刘锋嘉(Liu Fengjia)
 * @date: 2020/1/8
 * @time: 14:54
 * @Description: 
 */
@Data
@Table(name = "tb_subsidy")
public class TbSubsidy implements Serializable {
    /**
     * ID
     */
    @JsonSerialize(using= ToStringSerializer.class)
    @Id
    @Column(name = "id")
    private Long id;

    /**
     * 补贴名称
     */
    @Column(name = "`name`")
    private String name;

    /**
     * 英文补贴名称
     */
    @Column(name = "ename")
    private String ename;

    /**
     * 补贴金额
     */
    @Column(name = "subsidy_money")
    private String subsidyMoney;

    /**
     * 补贴次数
     */
    @Column(name = "number_subsidies")
    private Integer numberSubsidies;

    /**
     * 开始补贴时间 精确到时(24小时)
     */
    @Column(name = "starTime")
    private String startime;

    /**
     * 结束补贴时间 精确到时(24小时)
     */
    @Column(name = "endTime")
    private String endtime;

    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @Column(name = "createTime")
    private Date createtime;

    private static final long serialVersionUID = 1L;
}